package org.example.physics_engine;

public class BasicSettings {
    /**
     * 默认角速度衰减
     */
    public static final double DEFAULT_ANGULAR_DAMPING = 0.01;

    public static final int TICKS_PER_SECOND = 60;


    //The default step frequency of the dynamics engine; in seconds
    //动态引擎的默认步频，单位为秒
    public static final double DEFAULT_STEP_FREQUENCY = 1.0 / TICKS_PER_SECOND;

    //Physics在一个时间步长内的默认最大平移量，单位为米。
    public static final double DEFAULT_MAXIMUM_TRANSLATION = 30.0;

    //Physics在一个时间步长内的默认最大旋转角度，单位为弧度。
    public static final double DEFAULT_MAXIMUM_ROTATION = 0.5 * Math.PI;

    //默认求解器迭代次数
    public static final int DEFAULT_SOLVER_ITERATIONS = 25;

    /**
     * 默认线性容差，用于防止过冲
     */
    public static final double DEFAULT_LINEAR_TOLERANCE = 0.05;

    /**
     * 最大线性位置校正，用于防止过冲
     */
    public static final double DEFAULT_MAXIMUM_LINEAR_CORRECTION = 1;

    /**
     * 默认比例因子，用于防止过冲
     */
    public static final double DEFAULT_BAUMGARTE = 1;
}
